#include <stdio.h>
#include <stdlib.h>

typedef struct Box Box;
struct Box {
  double length;
  double width;
  double height;
};

double getVolume(Box b) { return b.length * b.width * b.height; }

int main(int argc, char *argv[]) {
  /* 结构体练习
   */
  Box box;
  printf("请输入长度：");
  scanf("%lf", &box.length);
  printf("请输入宽度：");
  scanf("%lf", &box.width);
  printf("请输入高度：");
  scanf("%lf", &box.height);
  double volume = getVolume(box);
  printf("体积是：%lf\n", volume);
  return EXIT_SUCCESS;
}
